package cn.sangyy.org.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author SangYY
 * @date: 2023/04/23/15:19
 */
@Data
public class Department {
    private Long id;
    private String sn;
    private String name;
    private String intro;
    private Long managerId;
    private Long parentId;
    private String path;
    private String state;
    private Long shopId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    private Employee manager;
    private Department parent;
    private List<Department> children;
}
